package com.jsj.service;

import com.jsj.pojo.Borrow;

import java.util.Date;
import java.util.List;

public interface BorrowReturnService {

    //默认请求，查询全部
    List<Borrow> queryAllBorrow();
    //未归还和已归还
    List<Borrow> queryBorrowByStatus(String borrowStatus);
    //关键字搜索
    List<Borrow> queryBorrowByName(String deviceName);
    //借出登记
    Boolean addBorrow(Borrow borrow);
    //归还设备
    Boolean returnDevice(int borrowId, int deviceId, Date returnTime);
    //修改借出信息
    Boolean updateBorrowById(Borrow borrow);
    //删除记录
    Boolean delBorrowById(int borrowId);
}
